package com.jason.lightreader.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jason.lightreader.entity.Score;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreMapper extends BaseMapper<Score> {
    //获取文章id数组
    @Select("select article_id from score group by article_id limit 10")
    List<Integer> getArticleIdGroupByArticleId();
}
